package com.kedacom.ctsp.authz.event;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.springframework.context.ApplicationEvent;

/**
 * 人员部门变更事件
 */
@Data
public class PersonChgDepartmentEvent extends ApplicationEvent {

    private String oldDeptCode;//原部门编号
    private String newDeptCode;//新部门编号

    public PersonChgDepartmentEvent(String oldDeptCode, String newDeptCode) {
        super(StringUtils.isBlank(newDeptCode) ? "" : newDeptCode);
        this.oldDeptCode = oldDeptCode;
        this.newDeptCode = newDeptCode;
    }
}
